home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / c / simplecalc / manual.txt < prev    next >
Text File  |  2000-02-28  |  2KB  |  49 lines

  1. /* -----------------------------------------------------------
  2.   $VER: calc.math.c 1.01 (22.02.2000)
  3.  
  4.   User Documentation for SimpleCalc
  5.  
  6.   (C) Copyright 2000 Matthew J Fletcher - All Rights Reserved.
  7.   amimjf@connectfree.co.uk - www.amimjf.connectfree.co.uk
  8.   ------------------------------------------------------------ */
  9.  
  10. Just a quick note about this program. You have a simple (but very
  11. powerfull) calculator. Its all coded in C/++ for gcc/libnix, but
  12. any amiga compiler really. It has a few warnings under gcc, but no
  13. errors and should compile just fine.
  14.  
  15. Bugs & Stuff
  16. ------------
  17. Yes the bad news, well me, barfly, and COP, squished most of the bugs,
  18. to the extent that this program wont crash (i think). On most systems
  19. infact i will go so far as to say any system.
  20.  
  21. 1) The display re-drawing routines are a bit lame, they presume a
  22. window of fixed position, now this only causes problems if you use
  23. a very large or very small font. The code to do the calculations
  24. properly in the source but disbled cos i had to get the program out
  25. quick (i have an interview, and they want some code examples).
  26.  
  27. 2) The maths mode select gadget does not work, and at the moment i
  28. cant work out why not, humm. It defult to float mode and it will
  29. overflow to expo when needed, which should be ok.
  30.  
  31.  
  32. Compiling
  33. ---------
  34. type make -f makefile and it will grind away for a minute or so and
  35. an executable will pop out the other end. This of course presumes
  36. that you have a full and working gnu/gcc/libnix install. If you use
  37. another compiler (maxon/storm). just start a new project and drag
  38. the files across, for (dice/sasc/vbcc), you will either have to
  39. convert the makefile, see if the dmake,smake,vmake prog will deal
  40. with gnu makefiles by changeing the compiler (and path) to dcc or
  41. vbcc etc. The best way is probaly just to type something like
  42.  
  43. dcc Calc.clip.c Calc.gui.c Calc.main.c Calc.math.c Calc.supp.c -o
  44. Calc -v -lm
  45.  
  46. and it should be ok.
  47.  
  48.  
  49.